package com.example.demo.mapper;

import com.example.demo.model.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {

    List<Article> queryArticle();

    void insertArticleInfo(Article article);

    Integer insertByCondition(Article article);

    List<Article> selectByCondition(@Param("uid") Integer uid,@Param("state") Integer state);

    Integer updateByCondition(@Param("title") String title,@Param("content") String content,@Param("id") Integer id);


   Integer batchDelete(@Param("ids") List<Integer> ids);


}
